package com.bs.teachassistant.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by limh on 2020/4/27.
 * 备课
 */

public class Less implements Parcelable{
    private String name;//课程名称
    private String chapter;//章节
    private String time;//授课时间
    private String content;//备课内容

    public Less(String name, String time, String chapter, String content) {
        this.name = name;
        this.time = time;
        this.chapter = chapter;
        this.content = content;
    }

    protected Less(Parcel in) {
        name = in.readString();
        time = in.readString();
        chapter = in.readString();
        content = in.readString();
    }

    public static final Creator<Less> CREATOR = new Creator<Less>() {
        @Override
        public Less createFromParcel(Parcel in) {
            return new Less(in);
        }

        @Override
        public Less[] newArray(int size) {
            return new Less[size];
        }
    };

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getChapter() {
        return chapter;
    }

    public void setChapter(String chapter) {
        this.chapter = chapter;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(name);
        parcel.writeString(time);
        parcel.writeString(chapter);
        parcel.writeString(content);
    }
}
